<template>
    <div class="home">
        <h2>我是home组件</h2>
        <button @click="clickoutlogin">退出登陆</button>
        <div class="homenav">
            <router-link to="/home/HomeReconmand">推荐</router-link>
            <router-link to="/home/HomeRank">排行榜</router-link>
            <router-view></router-view>
        </div>
    </div>
</template>
<script setup>
// 移除token
function clickoutlogin() {
    localStorage.removeItem("token")
}

</script>
<style scoped lang="less"></style>
